<?php
//删除长时间不活跃的种子
$this_dir = dirname(__FILE__) . '/';
require_once($this_dir . '../plugin/autoload.php');
$peer_db = new PeerDb();
$ttl = ConfLib::get('peer', 'ttl');
$time = time() - $ttl;
$where = array(
    'lt' => array(
        'update_time' => $time,
    ),
);
$peer_db->delete($where);
exit;
?>
